<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('users', function(Blueprint $table)
		{
            $table->increments('id',11);
//            $table->primary('user_id');
            $table->string('first_name',40);
            $table->string('last_name',30);
            $table->string('email',60);
            $table->string('pass',40);
            $table->string('website',60)->nullable();
            $table->string('yahoo',60)->nullable();
            $table->text('bio')->nullable();
            $table->string('avatar',100)->nullable();
            $table->tinyInteger('user_level',4);
            $table->string('active',60)->nullable();
            $table->dateTime('registration_date')->nullable();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('users');
	}

}
